﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "warranty", DisableSyncStructure = true)]
	public partial class Warranty {

		/// <summary>
		/// 保修编号，主键
		/// </summary>
		[JsonProperty, Column(Name = "W_Id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int WId { get; set; }

		/// <summary>
		/// 所属小区
		/// </summary>
		[JsonProperty, Column(Name = "W_Cell_Id", DbType = "int")]
		public int? WCellId { get; set; }

		/// <summary>
		/// 报修用户编号
		/// </summary>
		[JsonProperty, Column(Name = "W_UserId", DbType = "int")]
		public int? WUserId { get; set; }

		/// <summary>
		/// 申请状态（0未撤销，1撤销）
		/// </summary>
		[JsonProperty, Column(Name = "W_Application", DbType = "int")]
		public int? WApplication { get; set; }

		/// <summary>
		/// 评价等级（1-5）
		/// </summary>
		[JsonProperty, Column(Name = "W_Assess", DbType = "int")]
		public int? WAssess { get; set; }

		/// <summary>
		/// 申请时间
		/// </summary>
		[JsonProperty, Column(Name = "W_CreateTime", DbType = "datetime")]
		public DateTime? WCreateTime { get; set; }

		/// <summary>
		/// 受理时间
		/// </summary>
		[JsonProperty, Column(Name = "W_EndTime", DbType = "datetime")]
		public DateTime? WEndTime { get; set; }

		/// <summary>
		/// 保修设备
		/// </summary>
		[JsonProperty, Column(Name = "W_Equipment")]
		public string WEquipment { get; set; }

		/// <summary>
		/// 备注
		/// </summary>
		[JsonProperty, Column(Name = "W_Remark")]
		public string WRemark { get; set; }

		/// <summary>
		/// 受理状态(0未受理，1受理)
		/// </summary>
		[JsonProperty, Column(Name = "W_State", DbType = "int")]
		public int? WState { get; set; }

		/// <summary>
		/// 保修描述
		/// </summary>
		[JsonProperty, Column(Name = "W_Text")]
		public string WText { get; set; }

	}

}
